﻿<%@ Page Title="" Language="C#" MasterPageFile="~/GUI/Vista/MasterPage.Master" AutoEventWireup="true" CodeBehind="ModificarUsuario.aspx.cs" Inherits="ApuestasJMG.GUI.Vista.ModificarUsuario" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
    .style1
    {
        width: 401px;
    }
    .style2
    {
        width: 172px;
    }
    .modalBackground 
{ 
    background-color: Gray; 
    filter: alpha(opacity=50); 
    opacity: 0.50; 
} 
 
.updateProgress 
{ 
    border-width: 1px; 
    border-style: solid; 
    background-color: #FFFFFF; 
    position: absolute; 
    
} 
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table>
<tr>
        <td colspan=2 align=center> MODIFICAR USUARIO</td>
    </tr>
    <tr>
        <td align=right class="style2">Nombre:</td>
        <td align=left class="style1">
            <asp:TextBox ID="TxtNombre" runat="server" Enabled="False"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td align=right class="style2">Apellido</td>
        <td align=left class="style1">
            <asp:TextBox ID="TxtApellido" runat="server" Enabled="False"></asp:TextBox>
        </td>
    </tr>
    <tr>
     <td align=right class="style2">Cedula</td>
        <td align=left class="style1">
            <asp:TextBox ID="TxtCedula" runat="server" Enabled="False"></asp:TextBox>
        </td>
    </tr>
    <tr>
    <td align=right class="style2">Email</td>
    <td align=left class="style1">
            <asp:TextBox ID="TxtEmail" runat="server"  MaxLength ="30" ForeColor="Blue"></asp:TextBox>
            <asp:FilteredTextBoxExtender ID="TxtEmail_FilteredTextBoxExtender" 
                runat="server" Enabled="True" TargetControlID="TxtEmail" FilterType="LowercaseLetters,Custom,Numbers" FilterMode="ValidChars" ValidChars="@.-_">
            </asp:FilteredTextBoxExtender>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"  ErrorMessage="Falta campo" ForeColor="Red" ControlToValidate="TxtEmail" Display="Dynamic" ></asp:RequiredFieldValidator>
       
    </tr>
        
    <tr>
    <td align=right class="style2">Telefono</td>
    <td align=left class="style1">
            <asp:TextBox ID="TxtTelefono" runat="server" MaxLength= "11"></asp:TextBox>
            <asp:FilteredTextBoxExtender ID="TxtTelefono_FilteredTextBoxExtender" FilterType="Numbers"
                runat="server" Enabled="True" TargetControlID="TxtTelefono">
            </asp:FilteredTextBoxExtender>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server"  ErrorMessage="Llenar campo" ForeColor="Red" ControlToValidate="TxtTelefono" Display="Dynamic" ></asp:RequiredFieldValidator>
    </tr>
    <tr>
        <td align=right class="style2">Login</td>
        <td align=left class="style1">
            <asp:TextBox ID="TxtLogin" runat="server" MaxLength="50"></asp:TextBox>
            <asp:FilteredTextBoxExtender ID="TxtLogin_FilteredTextBoxExtender"  FilterMode="InvalidChars" InvalidChars="!·$%&/()=?¿>}{][,.->,.:;¨Ç+¡'<Ç¨_:;^*Ç~@|#~&#8364;¬][}{>"
                runat="server" Enabled="True" TargetControlID="TxtLogin">
            </asp:FilteredTextBoxExtender>
            
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"  ErrorMessage="Llenar campo" ForeColor="Red" ControlToValidate="TxtLogin" Display="Dynamic" ></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td align=right class="style2">Estatus</td>
        <td align=left class="style1">
            <asp:DropDownList ID="DropDownListEstatus" runat="server"  
                OnSelectedIndexChanged="DPLEstatus_SelectedIndexChanged" AutoPostBack="True">
                <asp:ListItem >Activo</asp:ListItem>
                <asp:ListItem >Inactivo</asp:ListItem>
            </asp:DropDownList>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"  ErrorMessage="Selecionar Estado" ForeColor="Red" ControlToValidate="DropDownListEstatus" Display="Dynamic" ></asp:RequiredFieldValidator>
        
        </td>
    </tr>
    <tr>
        <td align=right class="style2">Contraseña</td>
        <td align=left class="style1">
            <asp:TextBox ID="TxtContraseña" runat="server" MaxLength="20" Enabled="True"></asp:TextBox>
             <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server"  ErrorMessage="Llenar campo" ForeColor="Red" ControlToValidate="TxtContraseña" Display="Dynamic" ></asp:RequiredFieldValidator>
        </td>
        
    </tr>
    <tr>
        <td align=right class="style2">Repetir Contraseña</td>
        <td align=left class="style1">
            <asp:TextBox ID="TxtRepetirContraseña" runat="server"  MaxLength="20"></asp:TextBox>
           
            <asp:CompareValidator ID="CompareValidator1" runat="server" Type="String" Operator="Equal"  ForeColor="Red" runat="server" ErrorMessage="Contraseña erronea" ControlToCompare="TxtContraseña" ControlToValidate="TxtRepetirContraseña" Display="Dynamic">
            </asp:CompareValidator>
           
             <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server"  ErrorMessage="Llenar campo" ForeColor="Red" ControlToValidate="TxtRepetirContraseña" Display="Dynamic" ></asp:RequiredFieldValidator>
        </td>
    </tr>
        <tr>
        <td colspan=2 align=center> 
            <asp:Button ID="cmdRegresar" runat="server" Text="Regresar" 
                onclick="cmdRegresar_Click" />
            <asp:Button ID="cdmModificar" runat="server" Text="Modificar" 
                onclick="cdmModificar_Click"  />
            </td>
    </tr>
</table>
</asp:Content>
